<div class="bucket">
    <h1 class="bucketTitle">Twój koszyk</h1>
    <div class="col-xs-8">
        <div class="bucketProduct">
            <table class="table table-striped table-bordered">
                <th>Nazwa</th><th>Cena</th><th>Sztuk</th><th>Akcje</th>
                <?php foreach ($bucket->getObjects() as $obj): ?>
                    <tr data-id="<?php echo $obj['id']; ?>">
                        <td><?php echo $obj['pidobj']->getName(); ?></td>
                        <td class="price"><?php echo $obj['pidobj']->getPrice(); ?></td>
                        <td class="nmb"><?php echo $obj['nmb']; ?></td>
                        <td>
                            <a href="#" class="removeBucketCount"><span class="glyphicon glyphicon-minus"></span></a>
                            <a href="#" class="addBucketCount"><span class="glyphicon glyphicon-plus"></span></a>
                            <a href="#" class="removeProduct"><span class="glyphicon glyphicon-trash"></span></a>
                        </td>
                    </tr>
                <?php endforeach; ?>
            </table>
        </div>
    </div>
    <div class="col-xs-4">
        <div class="bucketInformation">
            <h1 align="center">Informacje</h1>
            <p>Wartośc Twojego koszyka to: <span id="bucketValue"><?php echo myBucket::getInstance()->getValue(); ?></span> zł.</p>
        </div>
    </div>
</div>
<div class="clearfix"></div>
<div class="deliveryTypeContainer">
    <h1 class="bucketTitle">Sposób dostawy</h1>
    <div class="col-xs-10">
            <table class="table table-striped table-bordered">
                <th>Nazwa</th><th>Opis</th><th>Cena</th><th>Akcje</th>
                <?php foreach ($deliveryType as $type): ?>
                    <tr>
                        <td><?php echo $type->getName(); ?></td>
                        <td><?php echo $type->getDescription(); ?></td>
                        <td><?php echo $type->getPrice(); ?></td>
                        <td><a href="#" class="chooseType btn btn-primary" data-id="<?php echo($type->getId()); ?>">Wybierz</a></td>
                    </tr>
                <?php endforeach; ?>
            </table>
    </div>
</div>    
